package ywpt.service.config;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.model.ProjectInfo;

public interface ProjectInfoService {

	public abstract ProjectInfo getProjectInfoById(Long id);

	public abstract int getProjectInfoCountByCriteria(DetachedCriteria query);

	public abstract List<ProjectInfo> getProjectInfos(
			DetachedCriteria query, int pageSize, int startIndex);

	public abstract void saveProjectInfo(ProjectInfo projectInfo, Long typeId, Long stateId, Long departId, Long peopleId, Long clientId, Long keshiId, Long linkManId,String[] peoId);

	public abstract void updateProjectInfo(ProjectInfo projectInfo, Long typeId, Long stateId, Long departId, Long peopleId, Long clientId, Long keshiId, Long linkManId,String[] peoId);

	public abstract void removeProjectInfo(Long id);
	
	public abstract List<ProjectInfo> getProjectInfoByProjectName(String projectName,Long departId, int start,int size);
	
	public abstract int getProjectInfoCountByProjeceName(String projectName,Long departId) ;

}
